#include "WPILib.h"
#include "Commands/Command.h"
#include "CommandBase.h"

class CommandBasedRobot : public IterativeRobot
{
public:	
	void RobotInit() 
	{
		printf("Robot Initialized.\n");
		CommandBase::init();
		GetWatchdog().SetExpiration(3000);
	}
	
	void AutonomousInit() 
	{
		printf("Autonomous Initialized.\n");
	}
	
	void AutonomousPeriodic() 
	{
		Scheduler::GetInstance()->Run();
		GetWatchdog().Feed();
	}
	
	void TeleopInit() 
	{
		printf("Tele-operated initialized.\n");
	}
	
	void TeleopPeriodic() 
	{
		Scheduler::GetInstance()->Run();
		GetWatchdog().Feed();
	}
};

START_ROBOT_CLASS(CommandBasedRobot);

